package com.ctshk.rpc.order.ship.req;

import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单旅客保险表
 * </p>
 *
 * @author 刘蕾
 * @since 2021-03-31
 */
@Data
@ApiModel(value="ShipOrderInsurance对象", description="订单旅客保险表")
public class ShipOrderInsuranceReq extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "船票产品id不能为空")
    @ApiModelProperty(value = "船票产品id")
    private String productId;

    @ApiModelProperty(value = "所属订单")
    private Long orderId;

    @ApiModelProperty(value = "保险id")
    private Long insuranceId;

    @ApiModelProperty(value = "保险名称")
    private String insuranceName;

    @ApiModelProperty(value = "保险开始日期")
    private LocalDateTime insuranceStartDate;

    @ApiModelProperty(value = "保险结束日期")
    private LocalDateTime insuranceEndDate;

    @ApiModelProperty(value = "保险单号")
    private String insuranceNumber;

    @ApiModelProperty(value = "保险价格")
    private BigDecimal insurancePrice;

    @ApiModelProperty(value = "投保人")
    private Long policyHolderId;

    @ApiModelProperty(value = "投保人名称")
    private String policyHolderName;

    @ApiModelProperty(value = "被保旅客Id,多个用逗号分隔")
    private String insuredPerson;


}
